﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;

namespace SQL
{
    class SqlInutil
    {

        string connectionString = "Data Source=localhost\\SQLEXPRESS;Initial Catalog=TreinamentoMVC;Persist Security Info=True;User ID=sa;Password=Tec@@2014";

        public static SqlConnection GetConnection()
        {
            
            SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["TreinamentoContext"].ConnectionString);
                conn.Open();
                return conn;
        }

    }
}
